package com.atguigu.springboot.service.impl;

import com.atguigu.springboot.entity.Schedule;
import com.atguigu.springboot.mapper.ScheduleMapper;
import com.atguigu.springboot.service.api.ScheduleService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class ScheduleServiceImpl implements ScheduleService {

    @Resource
    private ScheduleMapper scheduleMapper;

    @Transactional(readOnly = true)
    @Override
    public List<Schedule> getAll() {
        return scheduleMapper.selectAll();
    }
}
